<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="{{ asset('/admins/css/bootstrap.min.css') }}" rel="stylesheet"> 
    <script src="{{ asset('/admins/js/jquery.min.js') }}"></script>
    <script src="{{ asset('/admins/js/bootstrap.min.js') }}"></script>
</head>
<body>
        <div style="margin-left:30px;">   
            <!--  <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">商品修改</h1>
                </div>
            </div> -->
                @if(session('error'))
                    <div class="alert alert-warning">
                               {{ session('error') }}
                    </div>
                @endif

                        
           
            <form action="/admin/goodsmain" method="post" enctype="multipart/form-data">

            <div class="panel-body">
                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs">
                                <li class="active"><a href="#home" data-toggle="tab" aria-expanded="true">基本</a>
                                </li>
                                <li class=""><a href="#profile" data-toggle="tab" aria-expanded="false">参数</a>
                                </li>
                                <li class=""><a href="#messages" data-toggle="tab" aria-expanded="false">详情</a>
                                </li>
                                <li class=""><a href="#images" data-toggle="tab" aria-expanded="false">图片</a>
                                </li>
                                <li class=""><a href="#settings" data-toggle="tab" aria-expanded="false">包装清单</a>
                                </li>
                                <li class=""><a href="#shouhou" data-toggle="tab" aria-expanded="false">售后服务</a>
                                </li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">
                                <div class="tab-pane fade active in" id="home">
                                    <div class="form-group">
                                        <label>商品编码</label>
                                        <input name="code" class="form-control" placeholder="" value=""style="width:200px;"> 
                                    </div>
                                    <div class="form-group">
                                        <label>商品标题</label>
                                        <input name="title" class="form-control" placeholder="" style="width:500px;"> 
                                    </div>
                                    <div class="form-group">
                                        <label>副标题</label>
                                        <input name="ftitle" class="form-control" placeholder="" style="width:500px;"> 
                                    </div>
                                    <div class="form-group">
                                        <label>颜色</label>
                                        <input name="colour" class="form-control" placeholder="" style="width:200px;"> 
                                    </div>
                                    
                                    <div class="form-group">
                                        <label>华为价格</label>
                                        <input name="hwprice" class="form-control" placeholder="" style="width:200px;">
                                         <label>现价</label>
                                        <input name="price" class="form-control" placeholder="" style="width:200px;">  
                                    </div>
                                    <div class="form-group">
                                            <label>状态</label>
                                            <label class="radio-inline">
                                                <input name="status" id="optionsRadiosInline1" value="1" checked="checked" type="radio">上架
                                            </label>
                                            <label class="radio-inline">
                                                <input name="status" id="optionsRadiosInline2" value="0" type="radio">下架
                                            </label>
                                    </div>
                                    <div class="form-group">
                                        <label>销量</label>
                                        <input name="sales" class="form-control" placeholder="" style="width:200px;"> 
                                    </div>
                                    <div class="form-group">
                                        <label>库存</label>
                                        <input name="stock" class="form-control" placeholder="" style="width:200px;"> 
                                    </div>
                                    <div class="form-group">
                                        <label>上架时间</label>
                                        <input name="shelvetime" class="form-control" placeholder=""style="width:200px;"> 
                                    </div>
                                </div>
                                <div class="tab-pane fade" id="profile">
                                    <div class="form-group">
                                        <label>制式</label>
                                        <input name="standard" class="form-control" placeholder="" style="width:200px;"> 
                                        <label>容量</label>
                                        <input name="capacity" class="form-control" placeholder="" style="width:200px;">
                                        <label>屏幕尺寸</label>
                                        <input name="size" class="form-control" placeholder="" style="width:200px;"> 
                                    </div>
                                </div>
                                <div class="tab-pane fade" id="messages" >
                                    <div style="margin-top:30px">
                                       <script id="container" style="height:500px"name="content" type="text/plain" >
                                        
                                                
                                        </script>
                                        <!-- 配置文件 -->
                                        <script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
                                        <!-- 编辑器源码文件 -->
                                        <script type="text/javascript" src="/ueditor/ueditor.all.js"></script>
                                        <!-- 实例化编辑器 -->
                                        <script type="text/javascript">
                                            var ue = UE.getEditor('container');
                                        </script>
                                    </div>
                                   
                                </div>
                                <!-- 图片 -->
                                    <div class="tab-pane fade" id="images">
                                        <label>左侧展示图片</label>
                                        <table>
                                            <tr>
                                                <td><img src="" width="100" height="100"></td>
                                                <td><img src="" width="100" height="100"></td>
                                                <td><img src="" width="100" height="100"></td>
                                                <td><img src="" width="100" height="100"></td>
                                            </tr>
                                        </table>
                                        <input type="file" name="pic" multiple="multiple" />
                                        <!-- <input type="file" name="pic2" multiple="multiple" > -->

                                    </div>
                                <!-- 包装清单 -->
                                <div class="tab-pane fade" id="settings">
                                   <input name="packing" class="form-control" placeholder="" style="width:800px;">
                                </div> 
                                <!-- 售后 -->
                                <div class="tab-pane fade" id="shouhou">
                                   <textarea name="shouhou" cols='100'  rows='5'>
                                       
                                   </textarea>
                                </div>
                            </div>
                            
                            <input name="_token" value="{{ csrf_token() }}" type="hidden"> 
                            <input name="gid" value="{{ $id }}" type="hidden"> 
                            <button type="submit" class="btn btn-primary">提交</button>
                            <button type="button" class="btn btn-primary">保存草稿</button>
                            <button type="button" class="btn btn-success">取消</button>
                        </div>
                        </form>
        </div>


